package com.king.designpatterns.创造型模式.工厂模式;

/**
 * 具体产品 - 苹果
 *
 * @author king
 * @date 2021-06-05 21:36
 */
public class Apple implements Fruit {

    private int treeAge;

    public int getTreeAge() {
        return treeAge;
    }

    @Override
    public void grow() {
        System.out.println("苹果正在生长");
    }

    @Override
    public void harvest() {
        System.out.println("收获苹果");
    }

    @Override
    public void plant() {
        System.out.println("载种苹果");
    }
}
